package top.yokey.shopnc.model;

import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class MemberIndexModel {

    private final String ACT = "member_index";
    private static volatile MemberIndexModel instance;

    public static MemberIndexModel get() {
        if (instance == null) {
            synchronized (MemberIndexModel.class) {
                if (instance == null) {
                    instance = new MemberIndexModel();
                }
            }
        }
        return instance;
    }

    public void index(BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, Thread.currentThread().getStackTrace()[2].getMethodName())
                .post(baseHttpListener);

    }

    public void myAsset(BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "my_asset")
                .get(baseHttpListener);

    }

}
